<?php if (!defined('TL_ROOT')) die('You cannot access this file directly!');

/**
 * Contao Open Source CMS
 * Copyright (C) 2005-2011 Leo Feyer
 *
 * Formerly known as TYPOlight Open Source CMS.
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation, either
 * version 3 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this program. If not, please visit the Free
 * Software Foundation website at <http://www.gnu.org/licenses/>.
 *
 * PHP version 5
 * @copyright  LoadBrain 2011
 * @author     Ralf Weber
 * @package    ModulRwcards
 * @license    GNU/GPL
 * @filesource
 */


// Back end module
array_insert($GLOBALS['BE_MOD']['content'], 3, array
(
  'RWCards' => array
  (
    'tables' => array('tl_rwcards_category', 'tl_rwcards'),
    'icon'   => 'system/modules/rwcards/html/rwcards_icon.jpg'
  ),
  'RWCardsSentCards' => array(
    'tables' => array('tl_rwcardsdata'),
	'icon'   => 'system/modules/rwcards/html/icon.gif'
  )
  ));

// Front end module
array_insert($GLOBALS['FE_MOD']['miscellaneous'], 0, array
(
  'RWCards' => 'ModuleRwCards'
));


$GLOBALS['TL_HOOKS']['generateFrontendUrl'][] = array('MyClass', 'myGenerateFrontendUrl');
$GLOBALS['TL_CRON']['weekly'][] = array('MyClass', 'deleteOldCards');



?>
